home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
online
/
ibrowse_plugins
/
ib_desktop
/
desktop.readme
Wrap
Text File
|
2004-08-03
|
4KB
|
117 lines
ARexx script to save an image from IBrowse as a Dopus Magellan Desktop pattern.
==============================================================================
Background
==========
Having seen some other browser being able to save an image as an OS desktop, I
wondered if the same thing could be done for DOpus Magellan when using IBrowse.
The script presented here does just that. It is not ideal but does work.
It is based on the ARexx commands used in IBrowse 1.2 - 2.2 and any inceased
Arexx functionality in IB2.3 and IB3.0 may be able to do the job better. The
script currently relies on Ibrowse's GOTOURL command which has its drawbacks.
The script is intended to be run from IBs FAB Menu.
Setting Up The Script
=====================
It is required that the user defines the directory where they save images when
using IBrowse. One line of the script needs editing to do this. The directory
is defined in IBs Settings. This will default to the Download directory set in
General -> directories. However, it can be over-riden by individual MIME types
in General -> MIME Types. I save image data to Data:images but the user will
need to substitute this line with their own path to image data.
Limitations of the Script
=========================
The only way I could see (in IB2.2) to access the image was to use the command
GOTOURL with its SAVE option enabled. There must be an easier way to access
data already stored in IBs cache but I have not come across it - yet !
Using GOTOURL has a few drawbacks.
1. The download window opens.
2. If a file of the same name is already saved you have to click Overwrite.
3. IB looks for the file before accessing it from the cache, this can take time.
4. It is not possible to directly use a webpage background image.
5. The path of the image data needs to be defined.
A time delay has been introduced into the script to allow the image data to be
copied to its download directory. Without this the script would set the DOpus
background as blank.
GOTOURL cannot access the background image of a web page. A way around this is
to use the standard FAB Menu option, View Background Separately, and then use
the script on the click-able image.
Adding the Script to Browse
============================
Install the script by copying it to the Rexx drawer in your IBrowse directory.
Run IBrowse and select Settings from the Preferences menu.
Double click GUI to pen the sub menu and click FAB Menus.
The script can be added to the Image section, and if the user wishes to the
ImageLink section as well. If so this needs to be done twice as there is no way
to copy a custom menu option to another location, only move it.
A fix for IB3.0 perhaps ?
I added the script just under the Flush Image entry but location is at the
discretion of the user.
Drag the Custom section to where you wish to add the new entry.
Change the text that reads Custom to something more relevant, such as
Save as Desktop Backdrop.
Set the Action cycle gadget to Arexx and use the ASL requester to select the
script Rexx/desktop.ibrx
Set the argument to %i which is the current image URL.
The FAB Menu is now set up for Images and clicking them will have the option to
Save as a Desktop Backdrop shown.
If the user wishes they can do the same for the ImageLink section of the menu.
However, image links are usually not suitable as using for WB or DOpus
backdrops but it does no harm to have the functionality.
Tip. By using the argument %l for an ImageLink menu it is possible to use an image
linked to as a background image. Note this only works if the link points
directly to an image file and not a page containing an image. I personally do
not have this option set up.
After testing the FAB menus, remember to Save Settings when quitting IBrowse.
The Future
==========
Using GOTOURL is not ideal.
IB2.3 may have more Arexx commands and IB3.0 certainly will.
Re-wrting the script to use images more transparently without download windows
would be much better than the method used now.
A way of using a background image directly is something to consider.
Bill Eaves
Feb 2003.